<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html>
<head>
    <%@include file="../common/lib_css.jspf"%>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

    <!-- Main Header -->
    <%@include file="../common/header.jspf"%>

    <!-- Left side column. contains the logo and sidebar -->
    <%@include file="../common/sidebar.jspf"%>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                发包器
                <small>Send Package Management</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="<spring:url value='/index'/>"><i class="fa fa-dashboard"></i>首页</a></li>
                <li class="active">发包器</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">

            <!-- Your Page Content Here -->
            <div class="row">
                <div class="col-xs-12">
                    <div class="box">
                        <div class="box-header with-border">
                            <i class="fa fa-list"></i>
                            <h6 class="box-title">发包器列表</h6>
                            <div class="box-tools">
                                <div class="btn-group">
                                    <button type="button" class="btn btn-default" id="package-add"><i class="glyphicon glyphicon-plus"></i></button>
                                </div>
                            </div>
                        </div>
                        <div class="box-body">
                            <table id="packageTable" class="table table-bordered table-hover">
                                <thead>
                                <tr>
                                    <th>名称</th>
                                    <th>IP地址</th>
                                    <th>描述</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>广州1</td>
                                        <td>127.0.0.1
                                        </td>
                                        <td>广州</td>
                                        <td>
                                            <div class="col-xs-4">
                                                <button type="button" class="btn btn-block btn-default btn-xs delete-package">删除</button>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>广州1</td>
                                        <td>127.0.0.1
                                        </td>
                                        <td>广州</td>
                                        <td>
                                            <div class="col-xs-4">
                                                <button type="button" class="btn btn-block btn-default btn-xs delete-package">删除</button>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>广州1</td>
                                        <td>127.0.0.1
                                        </td>
                                        <td>广州</td>
                                        <td>
                                            <div class="col-xs-4">
                                                <button type="button" class="btn btn-block btn-default btn-xs delete-package">删除</button>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>广州1</td>
                                        <td>127.0.0.1
                                        </td>
                                        <td>广州</td>
                                        <td>
                                            <div class="col-xs-4">
                                                <button type="button" class="btn btn-block btn-default btn-xs delete-package">删除</button>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>广州1</td>
                                        <td>127.0.0.1
                                        </td>
                                        <td>广州</td>
                                        <td>
                                            <div class="col-xs-4">
                                                <button type="button" class="btn btn-block btn-default btn-xs delete-package">删除</button>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>广州1</td>
                                        <td>127.0.0.1
                                        </td>
                                        <td>广州</td>
                                        <td>
                                            <div class="col-xs-4">
                                                <button type="button" class="btn btn-block btn-default btn-xs delete-package">删除</button>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>广州1</td>
                                        <td>127.0.0.1
                                        </td>
                                        <td>广州</td>
                                        <td>
                                            <div class="col-xs-4">
                                                <button type="button" class="btn btn-block btn-default btn-xs delete-package">删除</button>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>广州1</td>
                                        <td>127.0.0.1
                                        </td>
                                        <td>广州</td>
                                        <td>
                                            <div class="col-xs-4">
                                                <button type="button" class="btn btn-block btn-default btn-xs delete-package">删除</button>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>广州1</td>
                                        <td>127.0.0.1
                                        </td>
                                        <td>广州</td>
                                        <td>
                                            <div class="col-xs-4">
                                                <button type="button" class="btn btn-block btn-default btn-xs delete-package">删除</button>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>广州1</td>
                                        <td>127.0.0.1
                                        </td>
                                        <td>广州</td>
                                        <td>
                                            <div class="col-xs-4">
                                                <button type="button" class="btn btn-block btn-default btn-xs delete-package">删除</button>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>广州1</td>
                                        <td>127.0.0.1
                                        </td>
                                        <td>广州</td>
                                        <td>
                                            <div class="col-xs-4">
                                                <button type="button" class="btn btn-block btn-default btn-xs delete-package">删除</button>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>广州1</td>
                                        <td>127.0.0.1
                                        </td>
                                        <td>广州</td>
                                        <td>
                                            <div class="col-xs-4">
                                                <button type="button" class="btn btn-block btn-default btn-xs delete-package">删除</button>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>广州1</td>
                                        <td>127.0.0.1
                                        </td>
                                        <td>广州</td>
                                        <td>
                                            <div class="col-xs-4">
                                                <button type="button" class="btn btn-block btn-default btn-xs delete-package">删除</button>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>广州1</td>
                                        <td>127.0.0.1
                                        </td>
                                        <td>广州</td>
                                        <td>
                                            <div class="col-xs-4">
                                                <button type="button" class="btn btn-block btn-default btn-xs delete-package">删除</button>
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-xs-12">
                    <div class="box">
                        <div class="box-header with-border">
                            <i class="fa fa-list"></i>
                            <h6 class="box-title">发包器组</h6>
                            <div class="box-tools">
                                <div class="btn-group">
                                    <button type="button" class="btn btn-default" id="package-group-add"><i class="glyphicon glyphicon-plus"></i></button>
                                </div>
                            </div>
                        </div>
                        <div class="box-body">
                            <table id="packageGroupTable" class="table table-bordered table-hover">
                                <thead>
                                    <tr>
                                        <th>名称</th>
                                        <th>组成员</th>
                                        <th>描述</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>广州1组</td>
                                        <td>
                                            广州1，广州2
                                        </td>
                                        <td>测试组</td>
                                        <td>
                                            <div class="col-xs-2">
                                                <button type="button" class="btn btn-block btn-default btn-xs group-detail">详细信息</button>
                                            </div>
                                            <div class="col-xs-2">
                                                <button type="button" class="btn btn-block btn-default btn-xs modify-group">修改</button>
                                            </div>
                                            <div class="col-xs-2">
                                                <button type="button" class="btn btn-block btn-default btn-xs delete-group">删除</button>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>广州1组</td>
                                        <td>
                                            广州1，广州2
                                        </td>
                                        <td>测试组</td>
                                        <td>
                                            <div class="col-xs-2">
                                                <button type="button" class="btn btn-block btn-default btn-xs group-detail">详细信息</button>
                                            </div>
                                            <div class="col-xs-2">
                                                <button type="button" class="btn btn-block btn-default btn-xs modify-group">修改</button>
                                            </div>
                                            <div class="col-xs-2">
                                                <button type="button" class="btn btn-block btn-default btn-xs delete-group">删除</button>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>广州1组</td>
                                        <td>
                                            广州1，广州2
                                        </td>
                                        <td>测试组</td>
                                        <td>
                                            <div class="col-xs-2">
                                                <button type="button" class="btn btn-block btn-default btn-xs group-detail">详细信息</button>
                                            </div>
                                            <div class="col-xs-2">
                                                <button type="button" class="btn btn-block btn-default btn-xs modify-group">修改</button>
                                            </div>
                                            <div class="col-xs-2">
                                                <button type="button" class="btn btn-block btn-default btn-xs delete-group">删除</button>
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

    <!-- Main Footer -->
    <%@include file="../common/footer.jspf"%>

    <div class="modal" id = "add-package-pop">
        <div class="modal-dialog modal-normal">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close close-btn" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                    <h4 class="modal-title">发包器</h4>
                </div>
                <form class="form-horizontal">
                    <div class="modal-body">
                        <div class="form-group">
                            <label class="col-sm-4 control-label" >名称（必填）：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-4 control-label" >IP地址（必填）：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-4 control-label" >描述（必填）：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" >
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default pull-left close-btn" data-dismiss="modal">取消</button>
                        <button type="button" class="btn btn-primary">确认</button>
                    </div>
                </form>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>

    <!-- delete pop window -->
    <div class="modal" id = "confirm-delete-pack-pop">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close close-btn" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                    <h4 class="modal-title">提示</h4>
                </div>
                <div class="modal-body">
                    <p>确认删除发包器？</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default pull-left close-btn" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary" >确认</button>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>

    <div class="modal" id = "add-package-group-pop">
        <div class="modal-dialog modal-normal">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close close-btn" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                    <h4 class="modal-title">发包器</h4>
                </div>
                <form class="form-horizontal">
                    <div class="modal-body">
                        <div class="form-group">
                            <label class="col-sm-4 control-label" >名称（必填）：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-4 control-label" >描述（必填）：</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-4 control-label" >组成员（必填）：</label>
                            <div class="col-sm-8">
                                <div class="checkbox">
                                    <label>
                                        <input type="checkbox">
                                        广州 1
                                    </label>
                                    <label>
                                        <input type="checkbox">
                                        广州 2
                                    </label>
                                    <label>
                                        <input type="checkbox">
                                        广州 3
                                    </label>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default pull-left close-btn" data-dismiss="modal">取消</button>
                        <button type="button" class="btn btn-primary">确认</button>
                    </div>
                </form>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>

</div>
<!-- ./wrapper -->

<!-- REQUIRED JS SCRIPTS -->
<%@include file="../common/lib_js.jspf"%>

<script src="<spring:url value="/js/probe/send.js"/>"></script>
</body>
</html>
